import {
	request
} from '@/network/request.js'

// 从后台获得计算的数据
export function init(data) {
	return request({
		url: '/recruit/getRecruitByReckon',
		data: data
	})
}

// 首次提交申请
export function recruitApply(data) {
	return request({
		url: '/recruitApply/insert',
		data: data
	})
}

// 提交申请
export function recruitReApply(data) {
	return request({
		url: '/recruitApply/update',
		data: data
	})
}


// 招生资格信息
export function recruitInfo(data) {
	return request({
		url: '/recruit/findByTid',
		data: data
	})
}

// 申请列表
export function applyList(data) {
	return request({
		url: '/recruitApply/findApply',
		data: data
	})
}

// 申请
export function recruitInsert(data) {
	return request({
		url: '/recruit/insert',
		data: data
	})
}

// 修改信息
export function recruitUpdate(data) {
	return request({
		url: '/recruit/update',
		data: data
	})
}

export function delRecruitApply(data){
	return request({
		url: '/recruitApply/deleteById',
		data: data
	})
}